using BackData;
using Domain.DTOs.RBAC;
using MediatR;

namespace Team.API.Applocation.Command.Users.Permissions
{
    /// <summary>
    /// 查询权限树形结构命令
    /// </summary>
    public class QueryPermissionTreeCommand : IRequest<APIResult<List<PermissionDTO>>>
    {
        /// <summary>
        /// 是否只返回启用的权限
        /// </summary>
        public bool OnlyEnabled { get; set; } = true;

        /// <summary>
        /// 权限类型筛选（可选）
        /// </summary>
        public int? PermissionType { get; set; }
    }
}

